package com.cos.shop.entity;


public class Cart {

  private int cid;
  private int uid;
  private int pid;
  private double ccount;
  private int cnum;


  public Cart() {
  }

  public Cart(int uid, int pid, double ccount, int cnum) {
    this.uid = uid;
    this.pid = pid;
    this.ccount = ccount;
    this.cnum = cnum;
  }

  public int getCid() {
    return cid;
  }

  public void setCid(int cid) {
    this.cid = cid;
  }


  public int getUid() {
    return uid;
  }

  public void setUid(int uid) {
    this.uid = uid;
  }


  public int getPid() {
    return pid;
  }

  public void setPid(int pid) {
    this.pid = pid;
  }


  public double getCcount() {
    return ccount;
  }

  public void setCcount(double ccount) {
    this.ccount = ccount;
  }


  public int getCnum() {
    return cnum;
  }

  public void setCnum(int cnum) {
    this.cnum = cnum;
  }

  @Override
  public String toString() {
    return "Cart{" +
            "cid=" + cid +
            ", uid=" + uid +
            ", pid=" + pid +
            ", ccount=" + ccount +
            ", cnum=" + cnum +
            '}';
  }
}
